package model;

import javax.persistence.*;

@Entity
@Table(name = "completed_tasks")
public class CompletedTask extends Task {

	private static final long serialVersionUID = 645091385507657423L;

	protected Student student;
	protected int mark;

	public CompletedTask() {
		super();
	}

	public CompletedTask(Long id, String name, Student student, int mark) {
		super(id, name);
		this.student = student;
		this.mark = mark;
	}

	public Student getStudent() {
		return student;
	}

	public void setStudent(Student student) {
		this.student = student;
	}

	public int getMark() {
		return mark;
	}

	public void setMark(int mark) {
		this.mark = mark;
	}

}
